import numpy as np
b = int(input("输入一个整数:"))
c = 0
d = 0
f = 1
list_a = [[0] * b for _ in range(b)]
while b-d >= 0:
    for i in range(c,b-d):
        for j in range(c,b-d):
            list_a[i][j]=f
    c += 1
    d += 1
    f+=1
print(np.array(list_a))